<?php
/* @var $this ArticleController */
/* @var $model Article */
/* @var $form CActiveForm */

?>
<?php $form=$this->beginWidget('CActiveForm', 
      array("id"=>'articleform',
      'enableClientValidation'=>true,
      'clientOptions'=>array(
        'validateOnSubmit'=>true,
      ),
      "htmlOptions"=>array(
          "class"=>"form-horizontal")
    )); ?>

	 <?php echo $form->errorSummary($model,null,null,array("class"=>'alert alert-error')); ?>

	
	<div class="control-group">
		<?php echo $form->labelEx($model,'name',array('class'=>'control-label')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'name',array('maxlength'=>100,"class"=>'span3')); ?>
		</div>
		<?php  $form->error($model,'name'); ?>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'url',array('class'=>'control-label')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'url',array('size'=>60,'maxlength'=>200,"class"=>'span5')); ?>
		</div>
		<?php  $form->error($model,'url'); ?>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'exchangeurl',array('class'=>'control-label')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'exchangeurl',array('size'=>60,'maxlength'=>200,"class"=>'span5')); ?>
		</div>
		<?php  $form->error($model,'exchangeurl'); ?>
	</div>

	<div class="control-group">
		<?php echo $form->labelEx($model,'sort',array('class'=>'control-label')); ?>
		<div class="controls">
		<?php echo $form->textField($model,'sort',array('size'=>60,'maxlength'=>200,"class"=>'span5')); ?>
		</div>
		<?php  $form->error($model,'sort'); ?>
	</div>

		
	<div class="control-group">
        <div class="controls">
				<?php echo CHtml::submitButton($model->isNewRecord ? '添加' : '修改',array("class"=>'btn')); ?>
				<?php echo CHtml::Button('返回',array('onclick'=>"location.href='".$this->createUrl("index")."'",'class'=>'btn')); ?>
		</div>
	</div>

	<?php $this->endWidget(); ?>
